PUBLIC = ../../public
SRC = src
BIN = bin
GLOBAL_BIN = ../../bin
CFLAGS = -Wall -pedantic -ansi -Werror
CC = gcc
LIB_TOOL = ar
LIB_FLAGS = -r -s
COMPILE_FLAG = -c

all: ListIterTestrelease 

ListIterTestdebug: CFLAGS+=-g 
ListIterTestdebug: BIN=bin/debug
ListIterTestdebug: GLOBAL_BIN=../../bin/debug
ListIterTestdebug: $(BIN)/ListIterTest clean
	@echo "**********************************************************"
	@echo "*							*"
	@echo "*		SUCCEFULY FINISHED			*"
	@echo "*							*"
	@echo "**********************************************************"


ListIterTestrelease: CFLAGS+=-g -DNDEBUG
ListIterTestrelease: BIN=bin/release
ListIterTestrelease: GLOBAL_BIN=../../bin/release
ListIterTestrelease: $(BIN)/ListIterTest clean
	@echo "**********************************************************"
	@echo "*							*"
	@echo "*		SUCCEFULY FINISHED			*"
	@echo "*							*"
	@echo "**********************************************************"

$(BIN)/ListIterTest: ListIterTest.o
	$(CC) $(CFLAGS) ListIterTest.o -L$(GLOBAL_BIN) -lListIter -o $(BIN)/ListIterTest

ListIterTest.o: $(PUBLIC)/List.h ListIterTest.c
	$(CC) $(COMPILE_FLAG) $(CFLAGS) -I$(PUBLIC) ListIterTest.c -o ListIterTest.o

clean: 
	rm *.o
